package org.apache.jsp.platform.om.info;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class edit_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(5);
    _jspx_dependants.add("/taglib.jsp");
    _jspx_dependants.add("/WEB-INF/tld/fmt.tld");
    _jspx_dependants.add("/WEB-INF/tld/fn.tld");
    _jspx_dependants.add("/WEB-INF/tld/c.tld");
    _jspx_dependants.add("/WEB-INF/tld/xw.tld");
  }

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	response.setHeader("progma", "no-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);

      out.write("\r\n");
      out.write("<!DOCTYPE html>\r\n");
      out.write("<html lang=\"zh-cn\">\r\n");
      out.write("<head>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/platform/include/page_list_head.jsp" + (("/platform/include/page_list_head.jsp").indexOf('?')>0? '&': '?') + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("title", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("51家庭管家管理平台", request.getCharacterEncoding()), out, false);
      out.write("\r\n");
      out.write("<link href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${platform}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/css/admin-default-info.css\" rel=\"stylesheet\">\r\n");
      out.write("<link rel=\"stylesheet\" href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${platform }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/plugins/ztree/css/zTreeStyle/zTreeStyle2.css\" type=\"text/css\">\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\t<header>\r\n");
      out.write("\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/platform/include/top.jsp" + (("/platform/include/top.jsp").indexOf('?')>0? '&': '?') + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("parentName", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("客户资料管理", request.getCharacterEncoding()) + "&" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("parentUrl", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("info", request.getCharacterEncoding()) + "&" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("currName", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("客户资料", request.getCharacterEncoding()) + "&" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("hasPrint", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("false", request.getCharacterEncoding()) + "&" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("hasExport", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("false", request.getCharacterEncoding()), out, false);
      out.write("\r\n");
      out.write("\t</header>\r\n");
      out.write("\t<div class=\"container-fluid clearfix\">\r\n");
      out.write("\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/platform/include/leftnavi.jsp", out, false);
      out.write("\r\n");
      out.write("\t\t<!-- 主内容 -->\r\n");
      out.write("\t\t<div class=\"main-container\" id=\"mainContainer\">\r\n");
      out.write("\t\t\t<form role=\"_editForm\" id=\"hasnoInfoForm\" class=\"\" action=\"customer_save\" data-validate=\"true\">\r\n");
      out.write("\t\t\t\t<div class=\"containerWrap center-block cm-pdb15\">\r\n");
      out.write("\t\t\t\t\t<!-- 搜索 -->\r\n");
      out.write("\t\t\t\t\t<p class=\"search-wrap cm-f14\">\r\n");
      out.write("\t\t\t\t\t\t<input type=\"text\" class=\"search-input\" autocomplete=\"off\"\r\n");
      out.write("\t\t\t\t\t\t\tplaceholder=\"请输入电话或姓名\" name=\"keyword\" id=\"keyword\"\r\n");
      out.write("\t\t\t\t\t\t\tvalue=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${memberphone}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" /> <span id=\"search\" class=\"search-btn\" onclick=\"searchCallback();\"></span>\r\n");
      out.write("\t\t\t\t\t</p>\r\n");
      out.write("\t\t\t\t\t<!-- 头部信息 -->\r\n");
      out.write("\t\t\t\t\t<div id=\"headerInfo\" class=\"head-msgWrap cm-f14 clearfix hidden\" style=\"width: 900px;\">\r\n");
      out.write("\t\t\t\t\t\t<!-- 有客户信息 -->\r\n");
      out.write("\t\t\t\t\t\t<div class=\"js-hasinfo\">\r\n");
      out.write("\t\t\t\t\t\t\t<!-- <input type=\"hidden\" id=\"customerID\" name=\"id\" value=\"0\" /> -->\r\n");
      out.write("\t\t\t\t\t\t\t<p class=\"col-xs-3\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<span>客户姓名：</span> <span class=\"color-itemvalue js-hasinfo-name\"></span>\r\n");
      out.write("\t\t\t\t\t\t\t</p>\r\n");
      out.write("\t\t\t\t\t\t\t<p class=\"col-xs-3\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<span>联系电话：</span> <span class=\"color-itemvalue js-hasinfo-tel\"></span>\r\n");
      out.write("\t\t\t\t\t\t\t</p>\r\n");
      out.write("\t\t\t\t\t\t\t<p class=\"col-xs-3\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<span>当前账户余额：</span> <span\r\n");
      out.write("\t\t\t\t\t\t\t\t\tclass=\"color-itemvalue js-hasinfo-balance\"></span>\r\n");
      out.write("\t\t\t\t\t\t\t</p>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t<!-- 没有客户信息 -->\r\n");
      out.write("\t\t\t\t\t\t<div class=\"js-noinfo\">\r\n");
      out.write("\t\t\t\t\t\t\t<span class=\"cm-ml15\" style=\"color: #bf2400;\">数据库查找不到该客户信息</span>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t<div id=\"headerInfo\" class=\"head-msgWrap cm-f14 clearfix hidden\">\r\n");
      out.write("\t\t\t\t\t\t<!-- 默认信息 -->\r\n");
      out.write("\t\t\t\t\t\t<div class=\"js-noinfo\">\r\n");
      out.write("\t\t\t\t\t\t\t<span class=\"cm-ml15\" style=\"color: #bf2400;\">无选中客户</span>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</form>\r\n");
      out.write("\t\t\t<table style=\"margin: 20px;\">\r\n");
      out.write("    \t\t\t<tr>\r\n");
      out.write("    \t\t\t\t<td width=\"400\" align=\"left\" valign=\"top\">\r\n");
      out.write("    \t\t\t\t\t<span style=\"font-weight: bold; font-size: 20px;\">属性分类：</span>\r\n");
      out.write("    \t\t\t\t\t<div style=\"width: 100%; height: 600px; padding: 20px; border: 1px solid rgb(137, 155, 141); overflow: auto;\">\r\n");
      out.write("    \t\t\t\t\t<ul id=\"treeDemo\" class=\"ztree\"></ul>\r\n");
      out.write("    \t\t\t\t\t</div>\r\n");
      out.write("    \t\t\t\t</td>\r\n");
      out.write("    \t\t\t\t<td width=\"500\">\r\n");
      out.write("    \t\t\t\t\t<span style=\"font-weight: bold; font-size: 20px;\">属性：</span>\r\n");
      out.write("    \t\t\t\t\t<div style=\"width: 100%; height: 600px; padding: 20px; border: 1px solid rgb(137, 155, 141); overflow: auto;\">\r\n");
      out.write("\t\t\t    \t\t\t<input type=\"hidden\" class=\"none js-memberid\" name=\"memberid\" id=\"memberid\"/>\r\n");
      out.write("\t\t\t    \t\t\t<input type=\"hidden\" name=\"typecode\" id=\"typecode\"/>\r\n");
      out.write("\t\t\t    \t\t\t<div id=\"data\"></div>\r\n");
      out.write("    \t\t\t\t\t</div>\r\n");
      out.write("    \t\t\t\t</td>\r\n");
      out.write("    \t\t\t</tr>\r\n");
      out.write("    \t\t</table>\r\n");
      out.write("    \t\t\r\n");
      out.write("\t\t\t<!-- 客户列表 -->\r\n");
      out.write("\t\t\t<div id=\"_box\" class=\"hidden\">\r\n");
      out.write("\t\t\t\t<div id='_showBox_overlay_1'\r\n");
      out.write("\t\t\t\t\tstyle=\"opacity: 0.5; position: fixed; _position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; background-color: #000; z-index: 99998;\"></div>\r\n");
      out.write("\t\t\t\t<div id=\"_showBox_1\"\r\n");
      out.write("\t\t\t\t\tstyle=\"position: fixed; z-index: 99999; width: 550px; max-height: 500px; left: 50%; top: 120px; margin-left: -275px; display: block; background-color: #fff;\">\r\n");
      out.write("\t\t\t\t\t<div id=\"header\"\r\n");
      out.write("\t\t\t\t\t\tstyle=\"position: relative; height: 38px; color: #fff; text-align: left; line-height: 42px; font-size: 18px; background-color: #f08300; width: 100%; text-indent: 15px;\">\r\n");
      out.write("\t\t\t\t\t\t<span class=\"box_title\">请选择客户</span> <a href=\"javascript:void(0)\"\r\n");
      out.write("\t\t\t\t\t\t\tid=\"close\"\r\n");
      out.write("\t\t\t\t\t\t\tstyle=\"display: block; position: absolute; top: -4px; right: 17px; font-size: 14px; color: #fff; z-index: 2; height: 14px;\"><i\r\n");
      out.write("\t\t\t\t\t\t\tclass=\"icon icon-remove\"></i></a>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t<div id=\"content\"\r\n");
      out.write("\t\t\t\t\t\tstyle=\"text-align: center; max-height: 400px; overflow-y: auto;\">\r\n");
      out.write("\t\t\t\t\t\t<table id=\"customerList\" class=\"table table-bordered center-block\"\r\n");
      out.write("\t\t\t\t\t\t\tstyle=\"width: 500px; border: none; margin-top: 25px;\">\r\n");
      out.write("\t\t\t\t\t\t\t<thead>\r\n");
      out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th width=\"200px\">姓名</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th width=\"150px\">电话</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<th width=\"150px\">余额（元）</th>\r\n");
      out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\t</thead>\r\n");
      out.write("\t\t\t\t\t\t\t<tbody>\r\n");
      out.write("\t\t\t\t\t\t\t</tbody>\r\n");
      out.write("\t\t\t\t\t\t</table>\r\n");
      out.write("\t\t\t\t\t\t<a href=\"javascript:void(0)\"\r\n");
      out.write("\t\t\t\t\t\t\tclass=\"js-box-sure cm-btn cm-btn-yellow\"\r\n");
      out.write("\t\t\t\t\t\t\tstyle=\"margin: 0 auto 30px;\">确定</a>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t</div>\r\n");
      out.write("\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/platform/include/page_edit_footer.jsp", out, false);
      out.write("\r\n");
      out.write("\t<script src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${platform}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/core/base.js\"></script>\r\n");
      out.write("\t<script src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${platform}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/views/customer.js\"></script>\r\n");
      out.write("\t<script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${platform }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/plugins/ztree/js/jquery.ztree.core-3.5.min.js\"></script>\r\n");
      out.write("  <script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${platform }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/plugins/ztree/js/jquery.ztree.excheck-3.5.min.js\"></script>\r\n");
      out.write("  <script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${platform }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/plugins/ztree/js/jquery.ztree.exedit-3.5.js\"></script>\r\n");
      out.write("  <script>\r\n");
      out.write("  var setting = {\r\n");
      out.write("\t\t\tdata: {\r\n");
      out.write("\t\t\t\tsimpleData: {\r\n");
      out.write("\t\t\t\t\tenable: true\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t},\r\n");
      out.write("\t\t\tcallback:{\r\n");
      out.write("\t\t\t\tonClick:  zTreeOnClick\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t};\r\n");
      out.write("\r\n");
      out.write("\t\tvar zNodes = ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${typeData}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write(";\r\n");
      out.write("  $(function(){\r\n");
      out.write("  \t$.fn.zTree.init($(\"#treeDemo\"), setting, zNodes);\r\n");
      out.write("  });\r\n");
      out.write("  function zTreeOnClick(event, treeId, treeNode) {\r\n");
      out.write("\t    window.Util.ajax.post('json_type_key',{typeId:treeNode.id, memberid: $('#memberid').val()},function(data){\r\n");
      out.write("\t\t\t$('#data').empty();\r\n");
      out.write("\t\t\tvar htmlStr = '';\r\n");
      out.write("\t\t\t$.each(data,function(key,item){\r\n");
      out.write("\t\t\t\thtmlStr += '<table style=\"width: 400px; font-size: 15px; margin-bottom: 5px; border: 0px solid rgb(137, 155, 141);\"><tr><td width=\"100\" align=\"right\" valign=\"top\">';\r\n");
      out.write("\t\t\t\thtmlStr += item['keyName'] + \":\";\r\n");
      out.write("\t\t\t\thtmlStr += '</td><td>';\r\n");
      out.write("\t\t\t\tif(item['keyType'] == 'input'){\r\n");
      out.write("\t\t\t\t\thtmlStr += '&nbsp;&nbsp;<input id=\"key_' + item['keyId'] + '\" name=\"key_' + item['keyId'] + '\" data-olddata=\"' + item['keyValue'] + '\" value=\"' + item['keyValue'] + '\" onblur=\"submitData(\\'' + item['keyId'] + '\\');\"/><span id=\"msg_' + item['keyId'] + '\" style=\"color:red;\"></span>';\r\n");
      out.write("\t\t\t\t}else if(item['keyType'] == 'textarea'){\r\n");
      out.write("\t\t\t\t\thtmlStr += '&nbsp;&nbsp;<textarea id=\"key_' + item['keyId'] + '\" name=\"key_' + item['keyId'] + '\" rows=\"5\" cols=\"30\" data-olddata=\"' + item['keyValue'] + '\" onblur=\"submitData(\\'' + item['keyId'] + '\\');\">' + item['keyValue'] + '</textarea><br/><span id=\"msg_' + item['keyId'] + '\" style=\"color:red;\"></span>';\r\n");
      out.write("\t\t\t\t}else{\r\n");
      out.write("\t\t\t\t\thtmlStr += '&nbsp;&nbsp;<input id=\"key_' + item['keyId'] + '\" name=\"key_' + item['keyId'] + '\" data-olddata=\"' + item['keyValue'] + '\" value=\"' + item['keyValue'] + '\" onblur=\"submitData(\\'' + item['keyId'] + '\\');\"/><span id=\"msg_' + item['keyId'] + '\" style=\"color:red;\"></span>';\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t\thtmlStr += '</td></tr></table>';\r\n");
      out.write("\t\t\t});\r\n");
      out.write("\t\t\t$('#data').html(htmlStr);\r\n");
      out.write("\t\t});\r\n");
      out.write("\t    $('#typecode').val(treeNode.code);\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction submitData(id){\r\n");
      out.write("\t\tvar memberid = $('#memberid').val();\r\n");
      out.write("\t\tif(memberid == null || memberid == ''){\r\n");
      out.write("\t\t\t$('#key_'+id).val('');\r\n");
      out.write("\t\t\talert('请选择客户！');\r\n");
      out.write("\t\t\treturn;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tvar typecode = $('#typecode').val();\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t$('#msg_'+id).css(\"color\", \"red\");\r\n");
      out.write("\t\t$('#msg_'+id).html('正在保存。。。');\r\n");
      out.write("\t\twindow.Util.ajax.post('ajax_save',\r\n");
      out.write("\t\t\t\t{\r\n");
      out.write("\t\t\t\t\tmemberid: memberid, \r\n");
      out.write("\t\t\t\t\ttypecode: typecode,\r\n");
      out.write("\t\t\t\t\tkeyid: id,\r\n");
      out.write("\t\t\t\t\tdata: $('#key_'+id).val()\r\n");
      out.write("\t\t\t\t},\r\n");
      out.write("\t\t\t\tfunction(data){\r\n");
      out.write("\t\t\t\t\tif(data == \"1\"){\r\n");
      out.write("\t\t\t\t\t\t$('#msg_'+id).css(\"color\", \"green\");\r\n");
      out.write("\t\t\t\t\t\t$('#msg_'+id).html('保存成功！');\r\n");
      out.write("\t\t\t\t\t\tsetTimeout(\"hiddenMsg(\" + id + \")\", 2000);\r\n");
      out.write("\t\t\t\t\t}else{\r\n");
      out.write("\t\t\t\t\t\t$('#msg_'+id).css(\"color\", \"red\");\r\n");
      out.write("\t\t\t\t\t\t$('#msg_'+id).html('保存失败！');\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t);\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction hiddenMsg(id){\r\n");
      out.write("\t\t$('#msg_'+id).html('');\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction searchCallback(){\r\n");
      out.write("\t\t$('#data').empty();\r\n");
      out.write("\t}\r\n");
      out.write("  </script>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
      out.write("\r\n");
      out.write("\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
